import optparse

def main():
    parser = optparse.OptionParser()
    parser.add_option( '-i', dest='infile', default='', action='store')
    options,_  = parser.parse_args()
    data = []
    with open(options.infile,'r') as f:
        for line in f.readlines():
            if line[0] == "#":
                continue
            info = line.strip().split("\t")
            # print(info)
            if info[0].count("|") == 7:
                data.append([info[0],float(info[2])])
    print(options.infile + "\t" + "\t".join(map(str,max(data,key=lambda a:a[1]))))
    
if __name__ == "__main__":
    main()